[#include "/WEB-INF/pages/common/taglibs.ftl"]
[@c.url var="backUrl" value="/manage/Home_owner.action" scope="page"][/@c.url]
[#macro _script]
	<link rel="stylesheet" type="text/css">
	<style type="text/css">
		#reset span, #reset a {
			color: #B50000;
	    	font-size: 14px;
	    	margin: 2px 0;
	    	font-weight: bold;
		    font-weight: bol;
		    letter-spacing: 0.5px;
		}
		#reset span {
			font-weight: normal;
			font-size: 24px;
			font-family: 'BebasNeueRegular',Arial,Helvetica,sans-serif;
		}
		#reset a {
		    outline: medium none;
    		text-decoration: none;
    	}
		
	</style>
	<script type="text/javascript" src="[@c.url value='/js/plugins/jquery.alerts.js'/]"></script>
	<script type="text/javascript">
		//10s
		var time = 10;
		var base = (function(){
			// 事件绑定
			function _addEventListeners() {
			};
			return {
                config: {
                	url : null,
                	reload : null,
                    theme: null,
                    //阻塞标志
                    blocking:false
                },
                init: function () {
                    _addEventListeners();
                },
                reset: function() {
                	//阻塞
                	if (base.config.blocking) {
                		// 重置执行秒数
                		time = 10;
                		return;
                	} 
                	time = time - 1;
                	if (time < 0) {
                		//base.config.reload
                		var message = '${action.getText("login.reload.submit")}';
                		$('#reset').html(message);
                		$('#resetForm').submit();
                		return false;
                	} else {
                		var message = '${action.getText("login.reload.wait")}';
						message = message.replace('{0}', "<span>" + time + "</span>");
						message = message.replace('{1}', base.config.reload);
                		$('#reset').html(message);
                		setTimeout("base.reset()", 1000);
                	}
                }
			}
		}());
		
		$(function(){
			var link = "[@c.url value='/manage/Home_owner.action' /]";
			base.config.theme = getTheme();
			base.config.url = link;
			base.config.reload = "[@c.url value='/manage/logout'/]";
			base.init();
		})
	</script>
[/#macro]

[@_script /]
<div class="photoEdit">
	<form id="resetForm" style="display:none;" action="[@c.url value='/manage/logout.action'/]" method="get"></form>
	<form action="[@c.url value='/manage/Home_uppass.action'][@c.param name='ajax' value='true'/][/@c.url]" method="post" class="stdform quickform ajaxform validate">
		<br />
		<div class="contenttitle" style="border-radius: 8px 8px 8px 8px;">
        	<h2 class="settings3" style="border-radius:0"><span style="border-radius: 0px 8px 8px 0px;">修改密码</span></h2>
        </div>
    	<!--
        <h2>修改密码</h2>
        -->
        <br />
        <div key="notify"></div>
        <div class="loader" style="display:none;text-align:center">
        	<img alt="" src="[@c.url value='/images/loaders/loader11.gif'/]"/>
        </div>
        <p>
            <label style="width:70px;">原始密码</label>
            <input type="password" name="oldpass" class="mediuminput" rel="${action.getValidateMetadata("/manage", "Home_uppass", "oldpass")}"/>
        </p>
        <p>
            <label style="width:70px;">新密码</label>
            <input type="password" name="newpass" class="mediuminput" rel="${action.getValidateMetadata("/manage", "Home_uppass", "newpass")}"/>
        </p>
        <p>
            <label style="width:70px;">确认密码</label>
            <input type="password" name="repass" class="mediuminput" rel="${action.getValidateMetadata("/manage", "Home_uppass", "repass")}"/>
        </p>
        <br />
        <p class="action">
        	<button class="submit radius2">提&nbsp;交</button> &nbsp;
            <button class="cancel radius2">取&nbsp;消</button>
        </p>
        <br />
    </form>
    
</div><!--photoEdit-->

